#ihrm 登录的 接口对象层
import requests
class IhrmLogin(object):
    def login(self,req):
        resp=requests.post(url="http://ihrm2-test.itheima.net/api/sys/login",
                           json=req)
        return resp
if __name__ == '__main__':
    ihem=IhrmLogin()
    req_body={"mobile":"13800000002","password":"123456"}
    resp=ihem.login(req_body)
    print(resp.json())